package com.smart.seven.aop.pointcutadvisor.staticmethod;


import com.smart.seven.aop.pointcutadvisor.Seller;
import com.smart.seven.aop.pointcutadvisor.Waiter;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试类
 *
 * @author junrui.wang
 * @create 2018/6/14
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("classpath*:com/smart/seven/aop/pointcutadvisor/staticmethod/beans.xml");
        Waiter waiter = (Waiter) ac.getBean("waiter");
        waiter.greetTo("Tom");

        Seller seller = (Seller) ac.getBean("seller");
        seller.greetTo("Tom");

    }
}
